<%-- 
    Document   : DT
    Created on : 04/03/2009, 06:48:48 AM
    Author     : CrisTHian
--%>

<jsp:root xmlns:jsp="http://java.sun.com/jsp/page" xmlns:display="urn:jsptld:http://displaytag.sf.net/el" xmlns:c="urn:jsptld:http://java.sun.com/jstl/core" version="1.2">
    <jsp:directive.page contentType="text/html; charset=UTF-8" />
    <jsp:directive.page import="org.displaytag.sample.*" />
    <jsp:include page="inc/header.jsp" flush="true" />

    <jsp:scriptlet> request.setAttribute( "test", new TestList(10, false) ); </jsp:scriptlet>
    <jsp:text>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head></head>
        <body>
            <h2>Data exporting</h2>
            <display:table name="test" export="true" id="currentRowObject">
                <display:setProperty name="export.rtf.filename" value="example.rtf"/>
                <display:column property="id" title="ID" />
                <display:column property="email" />
                <display:column property="status" />
                <display:column property="longDescription" media="csv excel xml pdf" title="Not On HTML" />
                <display:column property="date" />
                <display:column media="html" title="URL">
                    <![CDATA[<a href="]]><c:out value="${currentRowObject.url}" /><![CDATA[">]]><c:out value="${currentRowObject.url}" /><![CDATA[</a>]]>
                </display:column>
                <display:column media="csv excel" title="URL" property="url" />
                <display:setProperty name="export.pdf" value="true" />
            </display:table>

            <jsp:include page="inc/footer.jsp" flush="true" />

        </body>
    </html>
</jsp:root>